<!--  -->
<template>
    <div class="page">
        <router-link :to="item.link" 
                     v-for="item in links"
                     :key="item.name">{{item.name}}</router-link>
    </div>
</template>

<script>
export default {
    data () {
        return {
            links:[
                {
                    link: 'login',
                    name: '登录'
                },
                {
                    link: 'register',
                    name: '注册'
                },
                {
                    link: 'index',
                    name: '主页'
                },
                {
                    link: 'contents',
                    name: '帖子'
                },
                {
                    link: 'extend',
                    name: '回帖'
                }
            ]
        };
    },

    computed: {},

    methods: {}
}

</script>

<style lang='less' scoped>
</style>